<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style> /*CSS*/
			.div0,p{
				border: 2px solid orangered; 边框距离
				
			} 
			.div1,.div2,.div3 {
				width: 100px;
				height: 100px;
				margin-top: 6px;
				margin:3px ;
			}
			.div1 {
				background-color: red;
				float: right;
			}
			.div2 {
				background-color: green;
				float: right;
			}
			.div3 {
				background-color: greenyellow;
				float: right;
			}
			.div4{     /*什么都不干，消除浮动对父类的影响*/
				clear: both;
			}
			p{
				clear: both; /*消除浮动对叔类的影响*/
			}
			
		</style>
	</head>
	<body>
		<div class="div0">
			<div class="div1"></div>
			<div class="div2"></div>
			<div class="div3"></div>
			<div class="div4"></div> <!--什么都不干，消除浮动对父类的影响-->
		</div>
		<p>浮动看我位置</p>
		
	</body>
</html>
